package com.letoken.platform.repo.admin.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.letoken.platform.repo.admin.po.AppUserRecharge;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.letoken.platform.repo.admin.req.user.QueryAppDepositListReq;
import com.letoken.platform.repo.admin.req.user.QueryLineChartReq;
import com.letoken.platform.repo.admin.res.user.QueryAppDepositListRes;
import com.letoken.platform.repo.admin.res.user.QueryAppRechargeCountRes;
import com.letoken.platform.repo.admin.res.user.QueryLineChartRes;
import com.letoken.platform.repo.admin.res.user.QueryWithdrawHistoryRes;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Le账户-用户充值订单表 Mapper 接口
 * </p>
 *
 * @author 作者
 * @since 2022-12-12
 */
public interface AdminAppUserRechargeMapper extends BaseMapper<AppUserRecharge> {

    Page<QueryAppDepositListRes> queryDepositList(@Param("page") Page<QueryAppDepositListRes> page, @Param("req") QueryAppDepositListReq req);

    QueryWithdrawHistoryRes queryRechargeByUserId(@Param("userId") Integer userId);

    QueryAppRechargeCountRes queryRechargeCount();

    List<QueryLineChartRes> queryDepositLineChart(@Param("req") QueryLineChartReq req);
}
